home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: delta / whiteline CD Series - delta.iso / vision / povray / math / bezier.pov < prev    next >
Text File  |  1995-11-25  |  1KB  |  50 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // Simpler Bezier patch example
  4. // by Alexander Enzmann
  5.  
  6.  
  7. #include "shapes.inc"
  8. #include "colors.inc"
  9. #include "textures.inc"
  10.  
  11. bicubic_patch { type 1 flatness 0.1  u_steps 8  v_steps 8
  12.    < 0.0, 0.0, 2.0>, < 1.0, 0.0, 0.0>, < 2.0, 0.0, 0.0>, < 3.0, 0.0, -2.0>,
  13.    < 0.0, 1.0, 0.0>, < 1.0, 1.0, 0.0>, < 2.0, 1.0, 0.0>, < 3.0, 1.0,  0.0>,
  14.    < 0.0, 2.0, 0.0>, < 1.0, 2.0, 0.0>, < 2.0, 2.0, 0.0>, < 3.0, 2.0,  0.0>,
  15.    < 0.0, 3.0, 2.0>, < 1.0, 3.0, 0.0>, < 2.0, 3.0, 0.0>, < 3.0, 3.0, -2.0>
  16.  
  17.    texture {
  18.       pigment {
  19.          checker color Red color Blue
  20.          rotate 90*x
  21.          quick_color Red
  22.       }
  23.       finish { ambient 0.1 diffuse 0.9 phong 1 }
  24.    }
  25.  
  26.    translate <-1.5, -1.5, 0>
  27.    scale 2
  28.    rotate <30, -60, 0>
  29.    bounded_by { sphere { <0, 0, 0>, 6 } }
  30. }
  31.  
  32. // Back wall 
  33. plane {
  34.     z, 500
  35.  
  36.    texture {
  37.       pigment { color red 0.4 green 0.4 blue 0.4 }
  38.    }
  39. }
  40.  
  41. camera {
  42.    location  <0.0, 0.0, -15.0>
  43.    right     <4/3, 0.0,  0.0>
  44.    up        <0.0, 1.0,  0.0>
  45.    direction <0.0, 0.0,  1.0>
  46. }
  47.  
  48. // Light source 
  49. light_source { <5, 7, -5> colour White }
  50.